package grammer;

import grammer.components.Component;
import grammer.components.TimeEnum;

/**
 * 
 * 
 * @author Minodor
 * 
 *         Adapter for TimeObject 1 & 2 - wrapped around enumeration
 */
public abstract class TimeObject implements Member {
	protected Component time;

	public TimeObject(Component time) {
		super();
		this.time = time;
	}

	public Component getMember() {
		return getTime();
	}

	public TimeEnum getTime() {
		return (TimeEnum) time;
	}

	public void setTime(TimeEnum time) {
		this.time = time;
	}
}
